<?php

include '../function.php';

$data = file_get_contents("http://www.cnblogs.com/hyddd/archive/2009/03/31/1426026.html");


$preg = "/<a id=\"cb_post_title_url\" href=\".*?\">(.*?)<\/a>/";

$preg = "/<div id=\"cnblogs_post_body\">(.*?)<div id=\"MySignature/s";

$res = preg_match_all($preg, $data, $out);

file_put_contents('./db.txt', $out[1][0]);











 ?>